package com.dushibao.service;

import com.dushibao.entity.User;
import com.dushibao.utils.Page;

import java.util.List;

public interface UserService {
    Integer login(String userName,String password);

    Page page(Page page, String userName);

    User getById(long id);

    Integer saveOrUpdate(User user,List<Long> ids);

    Integer deleteById(List<Long> ids);

    Integer save(User user);

    List<User> queryByUserNameAndPassword(String userName, String password);

    Integer update(User user);

    List<User> list(List<Long> userIds);

    boolean saveBatch(List<User> users);

}
